@import "tailwindcss";
@plugin "daisyui";

:root {
  --tt-color-highlight-green: #4CAF50;
  --tt-color-highlight-blue: #00529F;
  --tt-color-highlight-red: #F44336;
  --tt-color-highlight-yellow: #FF9800;
  --tt-color-highlight-purple: #9C27B0;
  --tt-color-highlight-gray: #9E9E9E;
  --theme-color: #002FA7;
  --bg-color: #F1F1F1;
}

#nprogress { pointer-events: none; --n-color:#ccc9c9; }
#nprogress .bar {background: var(--n-color); position: fixed; z-index: 1031; top: 0; left: 0; width: 100%; height: 4px; }
#nprogress .peg {display: block; position: absolute; right: 0px; width: 100px; height: 100%; box-shadow: 0 0 10px var(--n-color), 0 0 5px var(--n-color); opacity: 1; transform: rotate(3deg) translate(0px, -4px);}
#nprogress .spinner-icon {border-top: 2px solid var(--n-color); border-right: 2px solid var(--n-color);}

@keyframes tail { 0% { transform: rotateZ(60deg);} 50% { transform: rotateZ(0deg);} 100% { transform: rotateZ(-20deg);} }
.animate-tail { animation: tail 0.5s ease-in infinite alternate-reverse; }
@keyframes zzz { 0% { color: transparent;} 50% { color: black;} 100% { color: transparent;} }
.animate-zzz { animation: zzz 2.3s linear infinite; }
.animate-zzz2 {animation: zzz 2s linear infinite;}

.jsoneditor {border: none !important;}

.swiper-pagination-bullet {width: 18px !important; border-radius: 4px !important;height: 3px !important; }
.swiper-pagination-bullet-active {background-color: #00529F !important;}

.x-menu-ul {margin-inline-start: 0;}

.editor ul { list-style-type: disc; }
.editor ol { list-style-type: decimal; }
.editor li { margin-bottom: 0.5em; position: relative; left: 0.5em; }
.editor ul ul, ol ol, ul ol, ol ul { margin-top: 0.5em; margin-bottom: 0; }
@media (max-width: 768px) { .editor ul, ol { padding-left: 1.5em; } }
.editor blockquote { margin: 20px 0; padding: 15px 25px; border-left: 4px solid #4CAF50; background-color: #f9f9f9; color: #555; font-style: italic; line-height: 1.6; }
.editor blockquote blockquote.modern { border: none; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); background: white; padding: 20px; }
.editor blockquote.quote-mark::before { content: '"'; font-size: 60px; color: #ddd; line-height: 0; vertical-align: -0.4em; }
@media (max-width: 768px) {.editor blockquote { padding: 10px 15px; font-size: 0.9em; }}

.tiptap-toolbar {background-color: #FFF !important;margin-bottom: 4px !important;z-index: 1 !important;}
.simple-editor-content {max-width: 100% !important;}
.simple-editor-content ::selection {background: rgba(0, 120, 255, 0.3);}
.tiptap.ProseMirror .selection {background: #cce5ff !important;color: #000; display: inline;}
.tiptap-dropdown-menu  {background-color:  #FFF !important; border: 1px solid #CCC !important; border-radius: 4px !important; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 4px !important;}
.tiptap-popover {background-color: #FFF !important; border: 1px solid #CCC !important; border-radius: 4px !important; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 8px !important; z-index: 1000 !important;}
.simple-editor-content .tiptap.ProseMirror {padding: 8px !important;}

.prose { font-family: "Inter", sans-serif; font-size: 1rem; line-height: 1.75; color: #333; max-width: 100%; margin: 0; padding: 0; box-sizing: border-box; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-weight: bold; line-height: 1.25; margin-top: 1.5rem; margin-bottom: 1rem; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.25rem; }
.prose h5 { font-size: 1.125rem; }
.prose h6 { font-size: 1rem; }
.prose p { margin-bottom: 1rem; text-align: justify; white-space: pre-wrap; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { font-weight: bold; }
.prose em { font-style: italic; }
.prose a { color: #007acc; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose blockquote { border-left: 4px solid #ddd; padding-left: 1rem; margin: 1rem 0; font-style: italic; color: #555; }
.prose img { max-width: 100%; height: auto; display: block; margin: 1rem 0; width: 60%; object-fit: contain;}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { padding: 0.5rem; border: 1px solid #ddd; }
.prose th { background-color: #f9f9f9; font-weight: bold; }
.prose td { background-color: #fff; }
.prose pre { background-color: #f7f7f7; padding: 1rem; border-radius: 0.375rem; overflow-x: auto; }
.prose code { font-family: "Courier New", monospace; font-size: 0.875rem; color: #d63384; }
.prose hr { border: 0; border-top: 1px solid #ddd; margin: 1.5rem 0; }
.prose .highlight { background-color: #f0f0f0; padding: 0.5rem; border-radius: 0.375rem; }

.filter-focus { filter: brightness(0) saturate(100%) invert(20%) sepia(87%) saturate(6641%) hue-rotate(221deg) brightness(92%) contrast(109%); }
.filter-unfocus {filter: invert(17%) sepia(23%) saturate(0%) hue-rotate(194deg) brightness(100%) contrast(94%);}

.scrollbar-hide {scrollbar-width: none;-ms-overflow-style: none;}
.scrollbar-hide::-webkit-scrollbar {display: none;}